package com.mg.yygh.hosp.repository;

import com.mg.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author M_Dragon
 * @date 2022/8/30/030 10:22
 */
@Repository
public interface HospitalRepositoy extends MongoRepository<Hospital,String> {
    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
